package com.exam.dao;

import java.util.List;
import java.util.Set;

import com.exam.model.User;

import org.apache.ibatis.annotations.Param;
import org.apache.ibatis.annotations.Select;

import com.baomidou.mybatisplus.mapper.BaseMapper;
import com.baomidou.mybatisplus.mapper.EntityWrapper;
import com.baomidou.mybatisplus.mapper.Wrapper;
import com.baomidou.mybatisplus.plugins.pagination.Pagination;

/**
 * <p>
  * 用户表 Mapper 接口
 * </p>
 *
 * @author weirdor
 * @since 2017-06-15
 */
public interface UserDao extends BaseMapper<User> {
	User getUserByusername(@Param("ew") Wrapper<User> wrapper);
   @Select("findRoles")
 Set<String>  findRoles(String username);
   @Select("findPermissions")
 Set<String>  findPermissions(String username);
   @Select("selectUserList")
   List<User> selectUserList(Pagination page);
   @Select("selectUser")
   User  selectUser(String username);
   @Select("selectUserId")
   User  selectUserId(Long id);
}